import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from './Home'  //首页路由
import Client from './Client' //客服端下载路由
import Dispark from './Dispark' //开放平台路由
import GrabbleType1 from './GrabbleType1' //搜索单曲页路由
import GrabbleType10 from './GrabbleType10' //搜索专辑页路由
import GrabbleType100 from './GrabbleType100' //搜索歌手页路由
import Mymusic from './Mymusic' //我的音乐路由
import albumPage from './albumPage' //专辑列表页
import Vip from './Vip' //VIP路由
import songList from './songList' //歌单内容页
import playSong from './playSong'  //播放页面
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/Home'
  },
  Home,
  Client,
  Dispark,
  GrabbleType1,
  GrabbleType10,
  GrabbleType100,
  Mymusic,
  albumPage,
  Vip,
  songList,
  playSong
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
